package com.qianyucc.blog.model.vo;

import com.qianyucc.blog.model.pojo.*;
import lombok.*;

/**
 * @author lijing
 * @e-mail 1413979079@qq.com
 * @date 2020-03-21 11:26
 * @description 封装向前端返回的个人信息
 */
@Data
public class ProfileVO {
    public static ProfileVO create(Configs configs) {
        ProfileVO profileVO = new ProfileVO();
        profileVO.setName(configs.getName());
        profileVO.setAvatar(configs.getAvatar());
        profileVO.setMotto(configs.getMotto());
        profileVO.setIntroduction(configs.getIntroduction());
        profileVO.setPenName(configs.getPenName());
        return profileVO;
    }

    private String name;
    private String penName;
    private String avatar;
    private String motto;
    private String introduction;
}
